package com.sky.mapper;

import com.sky.anotion.AutoId;
import com.sky.entity.FileList;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface FileListMapper {
    /**
     * 获取某个id相关联的附件信息
     */
    @Select("select * from file_list where key_id = #{id}")
    List<FileList> getFileListByCompetitionId(String id);
    /**
     * 增加文件信息
     */
    @AutoId
    void insert(FileList fileList);

    /**
     * 根据id 删除
     */
    @Delete("delete from file_list where uid = #{id}")
    void deleteByid(Long id);
}
